import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugin/vant.js'
import axios from 'axios'

axios.defaults.baseURL = 'http://www.liulongbin.top:3005/'
Vue.prototype.$http = axios

Vue.config.productionTip = false

Vue.filter('timeFilter', function(val) {
  let time = new Date(val)

  let y = time.getFullYear(),
    m = time.getMonth(),
    d = time.getDate()

  return `${y}-${m}-${d}`
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
